﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MicroDal;
using System.Dynamic;
using System.Data.Common;

namespace MicroDalTests
{
    [TestClass]
    public class DynamicDtoTest
    {
        [TestMethod]
        public void SetProp()
        {
            var value = "My value";
            dynamic sut = new DynamicDto();
            sut.MyProp = value;

            Assert.AreEqual(value, sut.MyProp);
        }

        [TestMethod]
        public void GetProp_NonExisting()
        {
            dynamic sut = new DynamicDto();

            string val = sut.MyProp;

            Assert.AreEqual("n/a", val);
        }
    }
}
